package com.vmj.instructions.conversions;

import com.vmj.instructions.base.NoOperandsInstruction;
import com.vmj.rtda.Frame;

/**
 * Created by yangshoujun on 2017/9/17 上午10:14.
 */
public class F2i extends NoOperandsInstruction {
    @Override
    public void execute(Frame frame) {
        float val = frame.getOperandStack().popFloat();
        int result = Float.floatToIntBits(val);
        frame.getOperandStack().pushInt(result);
    }
}